package com.dubito.dose.data.repository

import com.dubito.dose.domain.model.Medication
import java.util.Date
import kotlinx.coroutines.flow.Flow

/**
 * author: LiLiang
 * createTime: 2022/9/5-13:39
 * remark:
 **/
interface MedicationRepository {

    suspend fun insertMedication(medication: Medication)

    suspend fun deleteMedication(medication: Medication)

    fun getMedicationForDate(date: Date): Flow<List<Medication>>

    fun getAllMedications(): Flow<List<Medication>>
}